package com.mingloucct.payment_ws.service.impl;

import com.mingloucct.payment_ws.dao.IMlusersDao;
import com.mingloucct.payment_ws.entity.Mlusers;
import com.mingloucct.payment_ws.service.IMlusersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class MlusersService  implements IMlusersService {
    @Autowired
    private IMlusersDao iMlusersDao;

    @Override
    public Mlusers loginMlusers(String username,String password,String value){
        Mlusers mlusers = iMlusersDao.loginMlusers(username, password,value);
            return mlusers;
    }
    @Override
    public Mlusers selectMlusers(String username){
        Mlusers mlusers = iMlusersDao.selectMlusers(username);
        return mlusers;
    }
    @Override
    public void editMlusers(String username,
                               String realname,
                               String mobile,
                               String notes,
                               String createtime){
        iMlusersDao.editMlusers(username, realname,mobile,notes,createtime);
    }
    @Override
    public List<Mlusers> selectAll(String username){
        List<Mlusers> mlusers = iMlusersDao.selectAll(username);
        return mlusers;
    }
    @Override
    public void changePermission(int userid,
                                 String upload,
                                 String getfile,
                                 String city,
                                 String android
    ){
        iMlusersDao.changePermission(userid,upload,getfile,city,android);
    }

}
